//
//  HSQSpecialModelViewController.m
//  LiTianDecoration
//
//  Created by administrator on 2018/7/30.
//  Copyright © 2018年 administrator. All rights reserved.
//

#import "HSQSpecialModelViewController.h"

@interface HSQSpecialModelViewController ()

@end

@implementation HSQSpecialModelViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.view.backgroundColor = KViewBackGroupColor;
    
    self.navigationItem.title = @"专题";
    
    // 请求专题的数据
    [self RequestProjectDataFromeServer];
}

/**
 * @brief 请求专题的数据
 */
- (void)RequestProjectDataFromeServer{
    
    [[HSQProgressHUDManger Manger] ShowLoadingDataFromeServer:@"" ToView:self.view IsClearColor:YES];
    
    NSDictionary *params = @{@"specialId":self.specialId};
    
    AFNetworkRequestTool *manger = [AFNetworkRequestTool  shareRequestTool];
    
    [manger.manger GET:UrlAdress(KSpecialUrl) parameters:params progress:^(NSProgress * _Nonnull downloadProgress) {
        
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        
        [[HSQProgressHUDManger Manger] DismissProgressHUD];
        
        HSQLog(@"===%@",responseObject);
        
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        
        [[HSQProgressHUDManger Manger] ShowDisplayFailedToLoadData:KErrorPlacherString SuperView:self.view];
    }];



}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
